package com.test.springbootwithelk;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    Logger logger = LoggerFactory.getLogger(DemoController.class);
	@GetMapping
	public String index() {
		
		logger.info("youlanw.com this is demo in springboot-with-elk");
		return "demo success";
	}
}
